package com.acando.mate.view;

import com.acando.mate.R;

import android.app.Activity;
import android.content.Context;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.CheckBox;
import android.widget.EditText;
import android.widget.TextView;

public class StatusFormActivity extends Activity{

	private EditText mFrom;
	private EditText mTill;
	private EditText mComment;
	private CheckBox mSetAsCurrent;
	private Button mAcceptButton;

	//TODO add type.
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_status_form);
		mFrom =   (EditText) findViewById(R.id.status_details_from_edittext);
		mTill =    (EditText) findViewById(R.id.status_details_till_edittext);
		mComment =   (EditText) findViewById(R.id.status_details_comments_edittext);
		mSetAsCurrent =   (CheckBox) findViewById(R.id.status_details_current_place_checkbox);
		mAcceptButton =   (Button) findViewById(R.id.status_details_change_button);	
		mAcceptButton.setOnClickListener(mAcceptButtonClickListener);
	}
	
	private OnClickListener mAcceptButtonClickListener= new OnClickListener() {
		
		@Override
		public void onClick(View v) {
			//TODO check from and till dates. Create new Status.
			//check if SetAsCurrent was set -> fill new information in db via request.
		}
	};
	
	
	  
}
